package org.example.client.messagehandler.heartbeat;

import io.netty.channel.Channel;
import lombok.extern.slf4j.Slf4j;
import org.example.client.message.heartbeat.HeartbeatResponse;
import org.example.common.dispacher.MessageHandler;
import org.springframework.stereotype.Component;

/**
 * @title
 * @time 2025/6/16 23:37
 */
@Component
@Slf4j
public class HeartbeatResponseHandler implements MessageHandler<HeartbeatResponse> {
    @Override
    public void execute(Channel ch, HeartbeatResponse message) {
        log.info("[execute][收到连接:{} 的心跳响应]", ch.id());
    }

    @Override
    public String getType() {
        return HeartbeatResponse.TYPE;
    }
}
